package org.example.myleet.p845;

import org.example.myleet.Utils.Assert;

public class Main {
    public static void main(String[] args) {
        Solution solution = new Solution();
        Assert.isTrue(5 == solution.longestMountain(new int[]{2,1,4,7,3,2,5}));
        Assert.isTrue(0 == solution.longestMountain(new int[]{2,2,2}));
        Assert.isTrue(7 == solution.longestMountain(new int[]{1,2,3,4,3,2,1}));
        Assert.isTrue(3 == solution.longestMountain(new int[]{0,2,0,2,1,2,3,4,4,1}));
        Assert.isTrue(3 == solution.longestMountain(new int[]{0,2,0,2,1,2,3,4,4,3,2,1,0}));
    }
}
